package com.alibaba.csp.sentinel.dashboard.repository.metric.clickhouse;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

/**
 *  SecondsMetricEvent表实体类
 *
 */
@TableName("t_seconds_metric")
public class TSecondsMetric extends Model<TSecondsMetric> {

    /**
     * 应用名称'
     */
    @TableField("app")
    private String app;
    /**
     * 资源名称(如:请求url路径,微服务路由名称)'
     */
    @TableField("resource")
    private String resource;
    /**
     * 流量发生的时间戳'
     */
    @TableField("timestamp")
    private Date timestamp;
    /**
     * 每秒通过的资源请求个数,当前秒通过未必当前秒完成调用'
     */
    @TableField("passQps")
    private Integer passQps;
    /**
     * 每秒资源被拦截的个数'
     */
    @TableField("blockQps")
    private Integer blockQps;
    /**
     * 每秒完成调用的资源个数,包括正常结束和异常结束的情况,当前秒完成未必当前秒通过的请求'
     */
    @TableField("successQps")
    private Integer successQps;
    /**
     * 每秒资源的异常个数'
     */
    @TableField("exceptionQps")
    private Integer exceptionQps;
    /**
     * successQps资源平均响应时间毫秒值'
     */
    @TableField("rt")
    private Integer rt;
    /**
     * 当前秒流量产生所包含的服务节点数量'
     */
    @TableField("count")
    private Integer count;
    /**
     * 创建时间
     */
    @TableField("gmtCreate")
    private Date gmtCreate;

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

    public Integer getPassQps() {
        return passQps;
    }

    public void setPassQps(Integer passQps) {
        this.passQps = passQps;
    }

    public Integer getBlockQps() {
        return blockQps;
    }

    public void setBlockQps(Integer blockQps) {
        this.blockQps = blockQps;
    }

    public Integer getSuccessQps() {
        return successQps;
    }

    public void setSuccessQps(Integer successQps) {
        this.successQps = successQps;
    }

    public Integer getExceptionQps() {
        return exceptionQps;
    }

    public void setExceptionQps(Integer exceptionQps) {
        this.exceptionQps = exceptionQps;
    }

    public Integer getRt() {
        return rt;
    }

    public void setRt(Integer rt) {
        this.rt = rt;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }
}

